#
#   Copyright (c) 2007-2010 Takashi Kitao
#
#   Permission is hereby granted, free of charge, to any person obtaining a copy
#   of this software and associated documentation files (the "Software"), to deal
#   in the Software without restriction, including without limitation the rights
#   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#   copies of the Software, and to permit persons to whom the Software is
#   furnished to do so, subject to the following conditions:
#
#   The above copyright notice and this permission notice shall be included in
#   all copies or substantial portions of the Software.
#
#   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#   THE SOFTWARE.
#


LOCAL_PATH1 := ./jni
LOCAL_PATH := $(call my-dir)
BUU_PATH := /Users/apple/Documents/workspace/buu/jni/
PARTICLE_PATH := $(LOCAL_PATH)/particle
ZLIB_PATH := ./zlib


include $(CLEAR_VARS)
# zlib
LOCAL_MODULE    := libzip
LOCAL_C_INCLUDES	:= $(ZLIB_PATH)
LOCAL_SRC_FILES := \
adler32.c\
compress.c\
crc32.c\
deflate.c\
gzclose.c\
gzlib.c\
gzread.c\
gzwrite.c\
infback.c\
inffast.c\
inflate.c\
inftrees.c\
trees.c\
uncompr.c\
zutil.c
 
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := aplatform
# catcake_logo.cpp collision_checker.cpp collision_target.cpp
LOCAL_SRC_FILES := \
main.cpp\
src/TraceLog.cpp\
src/LogCat.cpp\
src/PlatformMgr.cpp\
src/SceneRoleEntity.cpp\
src/SceneRoleMgr.cpp\
src/CatCakePlatform.cpp\
src/GlobeTimer.cpp\
src/CatCakeScene.cpp\
src/Camera.cpp\
src/FollowObserver.cpp\
src/RCResourcePtrHolder.cpp\
src/RefCounted.cpp\
src/zipgroup.cpp\
particle/src/ExportMgr.cpp\
particle/src/IGSD3DMath.cpp\
particle/src/IgsD3DPhysics.cpp\
particle/src/IgsScTextureMgr.cpp\
particle/src/Sprite3D.cpp\
particle/src/LevinSprite3D.cpp\
particle/src/ParticleSprite.cpp\
particle/src/ParticleBase.cpp\
particle/src/ParticleBelt.cpp\
particle/src/ParticleFireword.cpp\
particle/src/ParticleLevin.cpp\
particle/src/ParticleEmitterBase.cpp\
particle/src/ParticleEmitterSprite.cpp\
particle/src/ParticleEmitterBelt.cpp\
particle/src/ParticleEmitterFireword.cpp\
particle/src/ParticleEmitterTrail.cpp\
particle/src/ParticleEmitterLevin.cpp\
particle/src/ParticleEmitterMgr.cpp\
particle/src/LoaderMgr.cpp\
Client/ClientWorker.cpp\
catcake_logo.cpp

LOCAL_C_INCLUDES := \
	$(BUU_PATH)/include\
	$(LOCAL_PATH)/include\
	$(LOCAL_PATH)/include/wild\
	$(LOCAL_PATH)/include/wild/android\
	$(PARTICLE_PATH)/include\
	$(PARTICLE_PATH)/Client\
	$(ZLIB_PATH) 	  			

LOCAL_CXXFLAGS := -DNDEBUG -DCK_ANDROID





LOCAL_LDLIBS := -L$(BUU_PATH)/lib -lcatcake -lfreetype -lpng -lz -lGLESv1_CM -lgcc

#include $(CLEAR_VARS)


include $(BUILD_SHARED_LIBRARY)
